/*** Eclipse Class Decompiler plugin, copyright (c) 2012 Chao Chen (cnfree2000@hotmail.com) ***/
package com.qihoo.gamecenter.sdk.pay.component;

import android.content.Context;
import android.view.View;
import android.view.ViewParent;
import android.widget.RelativeLayout;
import com.qihoo.gamecenter.sdk.common.i.s;
import com.qihoo.gamecenter.sdk.pay.res.b;

public abstract class APayWidget extends RelativeLayout {
    protected String a = APayWidget.class.getSimpleName();
    protected final b b;

    public APayWidget(Context paramContext) {
        super(paramContext);
        this.b = b.a(paramContext);
        this.a = super.getClass().getSimpleName();
    }

    protected float a(float paramFloat) {
        return s.a(getContext(), paramFloat);
    }

    public static final void a(View paramView1, View paramView2, int[] paramArrayOfInt) {
        ViewParent localViewParent = paramView1.getParent();
        paramArrayOfInt[0] += paramView1.getLeft();
        paramArrayOfInt[1] += paramView1.getTop();
        while ((localViewParent instanceof View) && (localViewParent != paramView2)) {
            paramView1 = (View) localViewParent;
            paramArrayOfInt[0] += paramView1.getLeft() - paramView1.getScrollX();
            paramArrayOfInt[1] += paramView1.getTop() - paramView1.getScrollY();
            localViewParent = paramView1.getParent();
        }
        if (localViewParent != null)
            return;
        paramArrayOfInt[0] = 0;
        paramArrayOfInt[1] = 0;
        return;
    }

    public void a(int paramInt) {}
}